"""
    栗子
"""
from threading import Thread
from time import sleep, ctime


class MyThread(Thread):
    def __init__(self, target=None, args=(), kwargs={}):
        super().__init__()
        self.sec = args
        self.song = kwargs
        self.target = target

    def run(self):
        self.target(*self.sec, **self.song)

def player(sec, song):
    for i in range(3):
        print(f"{song}, {ctime()}")
        sleep(sec)

t = MyThread(target=player, args=(2,), kwargs={'song':"凉凉"})
t.start()
t.join()